Add exp+linear fccd model for the Germanium detectors#162
Add exp+linear fccd model for the Germanium detectors#162tdixon97 merged 9 commits intolegend-exp:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #162 +/- ##
==========================================
- Coverage 70.00% 68.98% -1.02%
==========================================
Files 33 33
Lines 2587 2631 +44
==========================================
+ Hits 1811 1815 +4
- Misses 776 816 +40 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks @giriPHM some parts look improved compared to my implementation. But could you instead return ak.Array with units like in |
Returning the results as ak.Array with attached units
|
Thanks @giriPHM for the nice contribution. It is similar to the open PR #162 but I think this implementation is a bit better and handles more cases. I noticed you did not include any tests yet, I wrote some for #157 so maybe we can add them also here, if you want I can do this. |
Implementing the requested changes on the Excellent model for fccd
|
Nice work @giriPHM , you have some linting errors can you run pre-commit locally: pre-commit run --all-filesand then fix the errors and add + commit + push the new files. Similarly can you try to build the docs locally cd docs
makeand fix the errors (probably just a empty line is needed after the math block) |
Fix the errors from pre-commit and docs build
Changing the documentation as requested
* Add exp+lin fccd model for the Germanium detectors * style: pre-commit fixes * Returning the results as ak.Array and attaching units to them Returning the results as ak.Array with attached units * style: pre-commit fixes * Implementing the requested changes on the Excellent model for fccd. Implementing the requested changes on the Excellent model for fccd * style: pre-commit fixes * Fix errors from pre-commit and docs build Fix the errors from pre-commit and docs build * style: pre-commit fixes * Changing the documentation as requested Changing the documentation as requested --------- Co-authored-by: Shailesh Giri <gishai@Mac.lan> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Shailesh Giri <gishai@Julietas-Laptop-3.local>
* Add exp+lin fccd model for the Germanium detectors * style: pre-commit fixes * Returning the results as ak.Array and attaching units to them Returning the results as ak.Array with attached units * style: pre-commit fixes * Implementing the requested changes on the Excellent model for fccd. Implementing the requested changes on the Excellent model for fccd * style: pre-commit fixes * Fix errors from pre-commit and docs build Fix the errors from pre-commit and docs build * style: pre-commit fixes * Changing the documentation as requested Changing the documentation as requested --------- Co-authored-by: Shailesh Giri <gishai@Mac.lan> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Shailesh Giri <gishai@Julietas-Laptop-3.local>
* Add exp+lin fccd model for the Germanium detectors * style: pre-commit fixes * Returning the results as ak.Array and attaching units to them Returning the results as ak.Array with attached units * style: pre-commit fixes * Implementing the requested changes on the Excellent model for fccd. Implementing the requested changes on the Excellent model for fccd * style: pre-commit fixes * Fix errors from pre-commit and docs build Fix the errors from pre-commit and docs build * style: pre-commit fixes * Changing the documentation as requested Changing the documentation as requested --------- Co-authored-by: giriPHM <94209767+giriPHM@users.noreply.github.com> Co-authored-by: Shailesh Giri <gishai@Mac.lan> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Shailesh Giri <gishai@Julietas-Laptop-3.local>
This is an effort to add the exponential + linear model for fccd. After talking with Toby, I realized that he was working on implementing the same model at the same time. We thought it would be a good idea to compare between our approaches to make sure that all the cases are well-handled.
For the parameters, fccd = 1, alpha =0.5, beta = 0.05, here is the output from my implementation overlayed with Toby's.
